package com.open.capacity.task.service;


import com.open.capacity.common.model.SysTask;
import com.open.capacity.task.model.TaskType;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface TaskService {
    Integer findTaskCounts();   //查询任务总数
    Map<String, String> setInformation(Map<String, String> task);   //设置任务信息

    Integer publishTask(Map<String, String> task);

    Integer updateTask(Map<String,String> sysTask);

    Integer addTaskType(Map<String, String> taskType);

    Map findTaskType(String type);

    Integer addTaskLevel(Map<String, Object> type);

    Map findTaskLevel(String type);

    Integer updateTaskLevel(Map<String, Object> type);

    Integer updateTaskType(Map<String, String> taskType);

    List<SysTask> findTasks(Map<String, Object> conditions);

    TaskType findTaskAreas(Map<String, Object> conditions);

    int findCounts(Map<String, Object> conditions);
}
